package com.asianrapid.dao;

import com.asianrapid.model.sys.FurnitrunEntity;
import com.asianrapid.model.sys.FurnitrunLinkEntity;
import com.asianrapid.model.sys.OptionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface FurnitrunDao {

    public ArrayList<FurnitrunLinkEntity> furnitrunList(@Param("pageSize") int pageSize, @Param("start") int start, @Param("state") int state);
    public ArrayList<OptionEntity> tableList(@Param("state") int state);

    public Integer furnitrunSize(@Param("pageSize") int pageSize,@Param("start") int start,@Param("state") int state);


    void insertFurnitrun(@Param("furnitrunEntity") FurnitrunEntity furnitrunEntity);
    void updateFurnitrun(@Param("furnitrunEntity") FurnitrunEntity furnitrunEntity);
    void deleteFurnitrun(@Param("groupId") List<String> groupId);


    FurnitrunEntity getFurnitrun(@Param("groupId") Integer groupId);

}
